<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
    <style>
        .input-group-addon{
            cursor: pointer;
        }
        thead th{
            cursor: pointer;
        }
    </style>
</head>
<body ng-app="myApp" ng-controller="MyController">
    <div class="container">
        <div class="input-group">
            <input type="text" class="form-control" placeholder="Search Something..." ng-model="searchStr">
            <span class="input-group-addon">
                <span class="glyphicon glyphicon-search"></span>
            </span>
            <!--<span class="input-group-btn">-->
                <!--<button class="btn btn-primary">搜索</button>-->
            <!--</span>-->
        </div>
        <table class="table">
            <thead>
                <tr>
                    <th>产品编号<span class="caret"></span></th>
                    <th>产品名称<span class="caret"></span></th>
                    <th>产品价格<span class="caret"></span></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in productData | filter:searchStr | orderBy : order">
                    <td>No.{{item.id}}</td>
                    <td>{{item.name}}</td>
                    <td>{{item.price | currency:'￥'}}</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>

<script src="../libs/AngularJS.min.js"></script>
<script src="../libs/jquery3_1_1.min.js"></script>
<script src="js/index.js"></script>